-- GENERATED SPELL FOR [Hakkari Shadow Hunter] --


function spell0_11339(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(21390,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11339', 546, 1)
end

function spell1_11339(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11339', 590, 1)
end

function spell2_11339(pUnit, Event) --@Volley,n/a--
pUnit:FullCastSpellOnTarget(22908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11339', 6000, 1)
end

function spell3_11339(pUnit, Event) --@Wyvern Sting,n/a--
pUnit:FullCastSpellOnTarget(24335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11339', 12313, 1)
end

function Sorts_11339(pUnit, Event)
local choix_sorts_11339 = math.random(0, 3)
if choix_sorts_11339 == 0 then
pUnit:RegisterEvent('spell0_11339', 1, 1)
end
if choix_sorts_11339 == 1 then
pUnit:RegisterEvent('spell1_11339', 1, 1)
end
if choix_sorts_11339 == 2 then
pUnit:RegisterEvent('spell2_11339', 1, 1)
end
if choix_sorts_11339 == 3 then
pUnit:RegisterEvent('spell3_11339', 1, 1)
end
end

function mob11339_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11339', math.random(1500, 3000), 1)
end

function mob11339_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11339_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11339_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11339, 1, 'mob11339_Action')
RegisterUnitEvent(11339, 2, 'mob11339_Leave')
RegisterUnitEvent(11339, 3, 'mob11339_Kill')
RegisterUnitEvent(11339, 4, 'mob11339_Die')
